package com.beiye.drivertransport.http;

import com.android.frame.http.HttpListener;
import com.android.frame.http.HttpUtils;
import com.android.frame.http.RequestParams;
import com.beiye.drivertransport.config.AppInterfaceConfig;

public class Sys {
    /**
     * 2.58.2 审核通知列表
     * @param userId
     * @param listener
     * @param what
     */
    public void noticeQueryForT(String userId, HttpListener listener, int what){
        RequestParams params=new RequestParams();
        params.addParam("userId",userId);
        new HttpUtils().doCall1(AppInterfaceConfig.getRequestUrl("sys/notice/findForCheck"),params,listener,what);
    }

    /**
     * 2.58.3 审核通知
     * @param infoType
     * @param relSn
     * @param checkUserId
     * @param checkMark
     * @param checkDesc
     * @param superiorUserId
     * @param listener
     * @param what
     */
    public void issueCheckuserCheck(int infoType,int relSn,String checkUserId,int checkMark,
                                    String checkDesc,String superiorUserId,HttpListener listener, int what){
        RequestParams params=new RequestParams();
        params.addParam("infoType",infoType+"");
        params.addParam("relSn",relSn+"");
        params.addParam("checkUserId",checkUserId);
        params.addParam("checkMark",checkMark+"");
        params.addParam("checkDesc",checkDesc);
        params.addParam("superiorUserId",superiorUserId);
        new HttpUtils().doCall1(AppInterfaceConfig.getRequestUrl("sys/issueCheck/userCheck"),params,listener,what);
    }

    /**
     * 2.58.4 审核列表
     * @param sn
     * @param listener
     * @param what
     */
    public void issueCheckuserFind(int sn, HttpListener listener, int what){
        RequestParams params=new RequestParams();
        params.addParam("sn",sn+"");
        new HttpUtils().doCall1(AppInterfaceConfig.getRequestUrl("sys/issueCheck/find"),params,listener,what);
    }
}
